﻿<%@ Page Language="c#" CodeBehind="addnew_edit.aspx.cs" MasterPageFile="~/App_MasterPages/layout.Master"
    AutoEventWireup="false" Inherits="ud_gSDMS.timesheet.addnew_edit" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ContentPlaceHolderID="leftContent" ID="MPLeftPane" runat="server" >
</asp:Content>
<asp:Content ContentPlaceHolderID="mainContent" ID="MPContent" runat="server">


<portal:mojoPanel ID="mp1" runat="server" ArtisteerCssClass="art-Post" RenderArtisteerBlockContentDivs="true">
    <mp:CornerRounderTop id="ctop1" runat="server" />
    <asp:Panel ID="pnlStoreManager" runat="server" CssClass="art-Post-inner panelwrapper gSDMS">
            <portal:ModuleTitleControlCustom ID="moduleTitle" runat="server" RenderArtisteer="true" UseLowerCaseArtisteerClasses="true"/>
        <portal:mojoPanel ID="MojoPanel1" runat="server" ArtisteerCssClass="art-PostContent">
        <div class="modulecontent">
            <fieldset>
     <div class="div_title">
                    <a href="/gsdmsmodule/timesheet/addnew_edit.aspx?pageid=16">List</a>
                    &nbsp;>&nbsp;
                    <a href="">Addnew</a>
                </div>
                    <div class="div_Edit">
                    <table cellpadding='3' cellspacing='0' border='0' width='auto' class="tb_edit">
                         <tr >
                            <td colspan="4">
                                <table cellpadding=0 cellspacing=0 border=0>
                                    <tr class="div_title_parent">
                                        <td class="div_title div_title_group">ADDNEW INFORMATION:</td>
                                    </tr>
                                </table>
                            </td>
                        </tr>

                        <tr>
                            <td class="title">Date:</td>
                              <td class="input" colspan="3">
                                    <telerik:RadDatePicker ID="datTimeSheet_Date" runat="server" 
                                        DateInput-DateFormat="dd/MM/yyyy" DateInput-CssClass="txtInput" DateInput-MaxLength="10" Width="120px" Height="18px"
                                        DatePopupButton-Width="23px" DatePopupButton-Height="23px" >
                                    <Calendar>
                                        <SpecialDays>
                                            <telerik:RadCalendarDay Repeatable="Today" ItemStyle-CssClass="rcToday" />
                                        </SpecialDays>
                                    </Calendar>
                                </telerik:RadDatePicker>
                                <span class="star">(*)</span>
                                <span class='span_note'>(dd/MM/yyyy)</span>
                                <asp:RequiredFieldValidator ControlToValidate="datTimeSheet_Date" SetFocusOnError="true" ErrorMessage="***" Display="Dynamic" ID="RequiredFieldValidator2" runat="server" ></asp:RequiredFieldValidator>
                            </td>
                        </tr>

                         <tr>
                            <td class="title">Project code:</td>
                            <td class="input" colspan="3">
                                <asp:HiddenField ID="hidId" runat="server" />
                                <asp:HiddenField ID="hidCreatedOn" runat="server" />
                                <telerik:RadComboBox ID="cboProject" AllowCustomText="true" runat="server" CssClass ="cbo_rad" Width="200px" EmptyMessage="" Filter="Contains"></telerik:RadComboBox>
                                <span class="star">(*)</span>
                                <asp:RequiredFieldValidator ControlToValidate="cboProject" SetFocusOnError="true" ErrorMessage="***" Display="Dynamic" ID="RequiredFieldValidator4" runat="server" ></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                                        
                        <tr>
                            <td class="title">Work:</td>
                            <td class="input" colspan="3">
                                <telerik:RadComboBox ID="cboWork" AllowCustomText="true" runat="server" CssClass ="cbo_rad" Width="200px" EmptyMessage="" Filter="StartsWith"></telerik:RadComboBox>
                                <span class="star">(*)</span>
                                <asp:RequiredFieldValidator ControlToValidate="cboWork" SetFocusOnError="true" ErrorMessage="***" Display="Dynamic" ID="RequiredFieldValidator6" runat="server" ></asp:RequiredFieldValidator>
                            </td>
                        </tr>

                        <tr>
                            <td class="title">From:</td>
                            <td class="input" colspan=3>
                                <asp:TextBox ID="txtFrom" runat="server" CssClass="txtInput" MaxLength="50"></asp:TextBox>
                                <span class="star">(*)</span>
                                <asp:RangeValidator ID="RangeValidFrom" runat="server" ControlToValidate="txtFrom" MaximumValue="24" MinimumValue="1" Type="Integer" ErrorMessage= "Phải nhập giá trị từ 1->24" />
                            </td>
                        </tr>

                         <tr>
                            <td class="title">To:</td>
                            <td class="input" colspan=3>
                                <asp:TextBox ID="txtTo" runat="server" CssClass="txtInput" MaxLength="50"></asp:TextBox>
                                <span class="star">(*)</span>
                                <asp:RangeValidator ID="RangeValidTo" runat="server" ControlToValidate="txtTo" MaximumValue="24" MinimumValue="1" Type="Integer" ErrorMessage= "Phải nhập giá trị từ 1->24" />
                            </td>
                        </tr>
                         <tr>
                            <td class="title">Hours:</td>
                            <td class="input" colspan=3>
                                <asp:TextBox ID="txtHours" runat="server" CssClass="txtInput" MaxLength="50"></asp:TextBox>
                                <span class="star">(*)</span>
                                <asp:RangeValidator ID="RangeValidHours" runat="server" ControlToValidate="txtHours" MaximumValue="240" MinimumValue="1" Type="Integer" ErrorMessage= "Phải nhập giá trị số..." />
                            </td>
                        </tr>

                        <tr>
                            <td class="title">TimeSheet Status:</td>
                            <td class="input" colspan="3">
                                <telerik:RadComboBox ID="cboStatus" AllowCustomText="true" runat="server" CssClass ="cbo_rad" Width="200px" EmptyMessage="" Filter="StartsWith"></telerik:RadComboBox>
                                <span class="star">(*)</span>
                                <asp:RequiredFieldValidator ControlToValidate="cboStatus" SetFocusOnError="true" ErrorMessage="***" Display="Dynamic" ID="RequiredFieldValidator1" runat="server" ></asp:RequiredFieldValidator>
                            </td>
                        </tr>

                         <tr>
                            <td class="title">% Finish:</td>
                            <td class="input" colspan=3>
                                <asp:TextBox ID="txtComplete" runat="server" CssClass="txtInput" MaxLength="50"></asp:TextBox>
                                <span class="star">(*)</span>
                                <asp:RangeValidator ID="RangeValidComplete" runat="server" ControlToValidate="txtComplete" MaximumValue="100" MinimumValue="0" Type="Integer" ErrorMessage= "Phải nhập giá trị từ: 0 -> 100" />
                            </td>
                        </tr>

                        <tr>
                            <td class="title">Description:</td>
                            <td class="input" colspan="3">
                                <asp:TextBox ID="txtDescription" runat="server" CssClass="txtInput" MaxLength="800" Rows="3" TextMode="MultiLine" Width="481px" Height="50px"></asp:TextBox>
                            </td>
                       </tr>
                       <tr>
                            <td class="title">Feedback:</td>
                            <td class="input" colspan="3">
                                <asp:TextBox ID="txtFeedback" runat="server" CssClass="txtInput" MaxLength="800" Rows="3" TextMode="MultiLine" Width="481px" Height="50px"></asp:TextBox>
                            </td>
                       </tr>
                       <tr>
                           <%-- <td class="title">Work Status:</td>--%>
                            <td class="input" colspan="3">
                                <telerik:RadComboBox ID="cboWorkStatus" AllowCustomText="true" runat="server" CssClass ="cbo_rad" Width="200px" EmptyMessage="" Filter="StartsWith"></telerik:RadComboBox>
                            </td>
                        </tr>

                        <tr class="tr_action">
                            <td></td>
                            <td>
                                <asp:Button ID='btnSave' runat="server" CssClass="btn_01 btn_save" Text="Save" />
                                <button id="reset" class="btn_01" type="reset">Reset</button>
                                &nbsp;&nbsp;
                                <%--<a href="javascript:history.back();" class="go_back">Go back</a>--%>
                                <a href="/gsdmsmodule/timesheet/record_approved.aspx" class="go_back">Go back</a>
                            </td>
                        </tr>
                        <tr>
                            <td class="title"></td>
                            <td class="input"><asp:Label ID="lblMes" runat="server" Visible="false" CssClass="lblMes"></asp:Label></td>
                        </tr>
                    </table>

                </div>
            </fieldset>
        </div>
        </portal:mojoPanel>
        <div class="cleared"></div>
    </asp:Panel>
    <mp:CornerRounderBottom id="cbottom1" runat="server" />
    </portal:mojoPanel>
</asp:Content>
<asp:Content ContentPlaceHolderID="rightContent" ID="MPRightPane" 
    runat="server" >
</asp:Content>
<asp:Content ContentPlaceHolderID="pageEditContent" ID="MPPageEdit" runat="server" />
